package b.p.b;

import android.view.View;
import android.view.ViewPropertyAnimator;
import androidx.recyclerview.widget.RecyclerView.z;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.Objects;

/* compiled from: DefaultItemAnimator */
public class g implements Runnable {
    public final /* synthetic */ ArrayList a;
    public final /* synthetic */ m b;

    public g(m mVar, ArrayList arrayList) {
        this.b = mVar;
        this.a = arrayList;
    }

    public void run() {
        Iterator it = this.a.iterator();
        while (it.hasNext()) {
            z zVar = (z) it.next();
            m mVar = this.b;
            Objects.requireNonNull(mVar);
            View view = zVar.a;
            ViewPropertyAnimator animate = view.animate();
            mVar.o.add(zVar);
            animate.alpha(1.0f).setDuration(mVar.c).setListener(new i(mVar, zVar, view, animate)).start();
        }
        this.a.clear();
        this.b.l.remove(this.a);
    }
}
